linear functions from a table